<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset="utf-8">
<title>书mark管理 </title>
<@fm.header />
<script type="text/javascript" src="/resources/js/common.js"></script>
<script type="text/javascript" src="/resources/js/book/bookMark.js"></script>
</head>
<body class="cmp-list-body">

<div id="tb" style="padding:3px">
	<span>书籍公司</span>
	<input id="sname" class="easyui-textbox" style="width: 155px;"/>
	<span>mark</span>
	<input id="smark" class="easyui-textbox" style="width: 155px;"/>
	<span>应用名称</span>
	<input id="sapkName" class="easyui-textbox" style="width: 155px;"/>
    <a href="#" class="easyui-linkbutton" iconCls="icon-search" plain="true" onclick="doSearch();">查询</a>
    <a href="#" class="easyui-linkbutton" iconCls="icon-add" plain="true" onclick="doAdd();">新增</a>
    <a href="#" class="easyui-linkbutton" iconCls="icon-edit" plain="true" onclick="doEdit();">修改</a>
    <a href="#" class="easyui-linkbutton" iconCls="icon-remove" plain="true" onclick="doDel();">删除</a>
    <a href="#" class="easyui-linkbutton" iconCls="icon-remove" plain="true" onclick="showFailCount();">查看失败数</a>
	<form id="ff" method="post">
		<input type="hidden" id="ename" name="name">
		<input type="hidden" id="emark" name="mark">
    </form>
</div>
<table id="tt" title="书籍mark管理 " toolbar="#tb" rownumbers="true" idField="id" 
	singleSelect="true" pagination="true" fitColumns="true" pageSize="15" pageList="[15,30,60,80,100]">  
    <thead>
        <tr>
            <th align="center" width="10%" field="bookCompanyId" hidden="true" ></th>
		    <th align="center" width="10%" field="bookCompanyName">书籍公司</th>
		    <th align="center" width="30%" field="mark">mark</th>
		    <th align="center" width="15%" field="apkName">应用名称</th>
		    <th align="center" width="5%" field="status" formatter="formatStatus">状态</th>
		    <th align="center" width="10%" field="createDate">创建时间</th>
		    <th align="center" width="10%" field="modifyDate">修改时间</th>
        </tr>
    </thead>   
</table>

<div id="addWin" class="easyui-window" title="书籍mark管理|新增修改" closed="true" collapsible="false" minimizable="false"  maximizable="false" style="width:500px;height:450px"   
        data-options="iconCls:'icon-save',modal:true">
     <div fit="true">
        <form id="addForm"  method="post" >
            <input type="hidden" id="idId"  name="id" />   
            <table>
		        <tr>
		             <td align="left">书籍公司</td>
		             <td><span id="bookCompanyName"></span>
		              <a href="#" class="easyui-linkbutton" iconCls="icon-add" plain="true" onclick="selectCompany();">选择</a>
		             <input id="bookCompanyId" name="bookCompanyId" type="hidden"></input></td>
		        </tr>	
		        <tr>
		             <td align="left">mark</td>
		             <td><input id="mark" class="easyui-validatebox" data-options="required:true" name="mark" style="width:400px" onblur="getApkName()"></input></td>
		        </tr>
		        <tr>
		        	<td align="left">应用名称 <input id="apkName" name="apkName" type="hidden"></input></td>
		        	<td id="tdApkName"></td>
		        </tr>
		        <tr>
		             <td align="left">状态</td>
		             <td>
		             <select class="easyui-combobox" id="status" name="status" panelHeight="auto" style="width:155px">
	                	<option value="1" selected>启用</option>
	                	<option value="0" >关闭</option>
		             </select>
		             </td>
		        </tr>	
           </table>
        </form>
        <div style="padding: 25px; text-align: center;">
            <a href="#" class="easyui-linkbutton" onclick="cancel();">取消</a>
            <a href="#" class="easyui-linkbutton"  onclick="save();">保存</a> 
        </div>
    </div>
</div>

<div id="selectWin" title="选择书籍公司" class="easyui-window" closed="true" collapsible="false" minimizable="false"  
maximizable="false"  style="width:500px;height:500px">
    <div fit="true" class="easyui-layout" style="overflow:scroll">
		<table id="tbCompany"  class="easyui-datagrid" fitColumns="true"
					rownumbers="true" singleSelect="true"  pagination="true" fitColumns="true" pageSize="15" pageList="[15,30,60,80,100]" 
					selectOnCheck="true" idField="id" toolbar="#searchCompany" 
					data-options="onDblClickRow:onDblClickRow" >     
					<thead>
						<tr>
							<th align="left" width="40%" field="name">书籍公司名称</th>
							<th align="left" width="10%" field="status">状态</th>
						</tr>
					 </thead>   
		</table>  
	</div>
</div>

<div id="searchCompany" style="padding:3px">
	<span>书籍公司</span>
	<input id="companyName" class="easyui-textbox" style="width: 155px;"/>
    <a href="#" class="easyui-linkbutton" iconCls="icon-search" plain="true" onclick="doSearchCompany();">查询</a>
</div>

<div id="selectWin2" title="查看失败次数" class="easyui-window" closed="true" collapsible="false" 
minimizable="false"  maximizable="false"  style="width:700px;height:530px">
    <div fit="true" class="easyui-layout"  style="overflow:scroll">
	
				 <table id="tbFailCount" class="easyui-datagrid" fitColumns="true" rownumbers="true" 
				 singleSelect="false" toolbar="#tb2" pagination="true" pageSize="30" pageList="[15,30,60,80,100]" >     
				     <thead>
					     <tr>
							<th align="left" width="50%" field="mark">mark</th>
							<th align="left" width="30%" field="bookName">书名</th>
							<th align="left" width="8%" field="failCount">失败次数</th>
						 </tr>
				     </thead>   
				 </table>      
	</div>
</div>

<div id="tb2" style="padding:3px">
	<span>mark</span>
	<input id="cmark" class="easyui-textbox" style="width: 230px;"/>
	<span>书名</span>
	<input id="cbookName" class="easyui-textbox" style="width: 155px;"/>
    <a href="#" class="easyui-linkbutton" iconCls="icon-search" plain="true" onclick="doSearchFailCount();">查询</a>
    <a href="#" class="easyui-linkbutton" id="exportData" iconCls="icon-export" plain="true" onclick="exportExcel();">导出</a> 
    <form id="ff2" method="post">
    	<input type="hidden" id="dmark" name="mark">
		<input type="hidden" id="dbookName" name="bookName">
    </form>
</div>

</body>
</html>